<div class="bannercontainer">
  <div class="banner">
    <div class="avatar"></div>
    <div class="text1">
      <script language="javaScript">
        now = new Date(), hour = now.getHours()
        if (hour < 6) {
          document.write("凌晨好")
        } else if (hour < 9) {
          document.write("早上好")
        } else if (hour < 12) {
          document.write("上午好")
        } else if (hour < 14) {
          document.write("中午好")
        } else if (hour < 17) {
          document.write("下午好")
        } else if (hour < 19) {
          document.write("傍晚好")
        } else if (hour < 22) {
          document.write("晚上好")
        } else {
          document.write("夜里好")
        }
        $(function() {
        //设置当前页菜单默认值
        var curLocation = location.href.split("/");
        var curPageName = curLocation.slice(curLocation.length-1, curLocation.length).toString(String).split(".").slice(0, 1).toString(String).toLowerCase().split("?")[0];
        var webMenu = $(".subnavigation2 div");
        switch(curPageName){
          case "":        webMenu.eq(0).addClass("subitmactive");webMenu.eq(4).addClass("arrow1a");break;
          case "index":     webMenu.eq(0).addClass("subitmactive");webMenu.eq(4).addClass("arrow1a");break;
          case "address":   webMenu.eq(1).addClass("subitmactive");webMenu.eq(4).addClass("arrow2a");break;
          case "notices":   webMenu.eq(2).addClass("subitmactive");webMenu.eq(4).addClass("arrow3a");break;
          case "feedback":  webMenu.eq(3).addClass("subitmactive");webMenu.eq(4).addClass("arrow4a");break;
        }
        })
      </script>
      <script type="text/javascript">
      function bandName(){
    	    var c=$("#userName").val();
    	    var a=$("#birthDay").val();
    	    var b=$("#sex option:selected").val();
    	    if(c==""){
    	        dialog.error("消息","姓名不能为空！");$("#birthDay").focus();
    	        return
    	    }
    	    if(a==""){
    	        dialog.error("消息","出生年月不能为空！");
    	        $("#birthDay").focus();
    	        return
    	    }
    	    if(!confirm("是否确定进行该操作？")){
    	        return
    	    }
    	    $.ajax({
    	        url:'updateUer',
    	        type:"POST",
    	        loading:true,
    	        dataType: "json",
    	        data:{
    	            userName:c,
    	            birthDay:a,
    	            sex:b
    	        },
    	        success:function(d){
    	            if(d.success){
    	                 dialog.alert("消息",d.message,null,'/index.php/UserCenter/index');

    	            }else{
    	                dialog.error("消息",d.message)
    	            }
    	        }
    	    })}
      </script>
      ，<span class="blue">{$user.member_name} </span>
    </div>
    <div class="text2">
   	   真实姓名：
   	    <if condition="$user.true_name eq ''">  
   	    	<span class="blue"> 尚未填写真实姓名 </span>
   	    <else/>
   	    	<span class="blue">{$user.true_name|msubstr=0,1,'utf-8',false}** </span>
   	    </if>  	
   	 <br> 
            手机号码： 
      <if condition="$user.member_mobile eq ''">      
            <span class="blue"> 尚未绑定手机 </span>
       <else/>
      	 <span class="blue"> {$user.member_mobile|substr=0,7}****</span>
       </if>     
      &nbsp;邮箱地址： 
      <if condition="$user.member_email eq ''">
      	<span class="blue"> 尚未绑定邮箱 </span>
      	
      <else/>
      	<span class="blue">  {$user.member_email} </span>
      </if>
    </div>
    <div class="text3">欢迎来到金至尊娱乐，我们更专注彩票，博彩乐趣都在这里。</div>
    <div class="subnavigation2">
      <div class="subitm2 " onClick="location.href='{:U('UserCenter/index')}'">安全设置</div>
      <div class="subitm2" onClick="location.href='{:U('UserCenter/address')}'">账号设置</div>
      <div class="subitm2 <if condition="$notice eq 'notice'">subitmactive</if>" onClick="location.href='{:U('UserCenter/notices')}'">消息中心</div>
      <div class="subitm2 <if condition="$feedback eq 'feedback'">subitmactive</if>" onclick="location.href='{:U('UserCenter/feedback')}'">意见反馈</div>
      <div class="arrow1a arrow"></div>
    </div>
  </div>
</div> 